package com.huahang.fashionpress.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huahang.fashionpress.model.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 阿俊哥
 * @Date: 2019/8/20 15:34
 * @Version 1.0
 */
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    @Select("select * from t_category where category_name = #{name}" )
    Category checkCategoryByName(String name);
    @Select("select * from t_category")
    List<Category> selectAllCategory();
}
